狗狗盘[搜].js 814 B

12345678910111213141516171819202122232425262728293031
  1. var rule = {
  2. title: '狗狗盘[搜]',
  3. host: 'https://gogopanso.com:3642',
  4. searchUrl: '/search?keyword=**&searchtype=movies&page=1&limit=10',
  5. searchable: 2,
  6. quickSearch: 0,
  7. headers: {
  8. 'User-Agent': 'PC_UA',
  9. },
  10. timeout: 5000,
  11. play_parse: true,
  12. lazy: $js.toString(() => {
  13. let url = input.startsWith('push://') ? input : 'push://' + input;
  14. input = {parse: 0, url: url};
  15. }),
  16. // 一级: '',
  17. 二级: '*',
  18. 搜索: $js.toString(() => {
  19. var d = [];
  20. var list = JSON.parse(request(MY_URL)).data;
  21. //log(list)
  22. list.map(it => {
  23. d.push({
  24. title: it.name,
  25. desc: it.inputday + it.type,
  26. url: it.downurl
  27. });
  28. });
  29. setResult(d);
  30. }),
  31. }